<script>
import Sun from "@/components/sun.vue";
export default {
  name: "child",
  components: {Sun}
}
</script>

<template>
  <div class="layui-panel child">
    <div style="padding: 32px;">
      <h1>child组件</h1>
      <sun></sun>
    </div>
  </div>
</template>

<style scoped lang="less">
.child {
  width: 80%;
  height: 300px;
}
</style>